home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000154 / patchSG0000154.idb / usr / include / GL / glxtokens.h.z / glxtokens.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  3.7 KB  |  118 lines

  1. /*
  2. ** Copyright 1991-1993, Silicon Graphics, Inc.
  3. ** All Rights Reserved.
  4. ** 
  5. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. ** the contents of this file may not be disclosed to third parties, copied or
  7. ** duplicated in any form, in whole or in part, without the prior written
  8. ** permission of Silicon Graphics, Inc.
  9. ** 
  10. ** RESTRICTED RIGHTS LEGEND:
  11. ** Use, duplication or disclosure by the Government is subject to restrictions
  12. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15. ** rights reserved under the Copyright Laws of the United States.
  16. */
  17.  
  18. #ifndef __GLXTOKENS
  19. #define __GLXTOKENS
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. /*
  26. ** Names for attributes to glXGetConfig.
  27. */
  28. #define GLX_USE_GL        1    /* support GLX rendering */
  29. #define GLX_BUFFER_SIZE        2    /* depth of the color buffer */
  30. #define GLX_LEVEL        3    /* level in plane stacking */
  31. #define GLX_RGBA        4    /* true if RGBA mode */
  32. #define GLX_DOUBLEBUFFER    5    /* double buffering supported */
  33. #define GLX_STEREO        6    /* stereo buffering supported */
  34. #define GLX_AUX_BUFFERS     7    /* number of aux buffers */
  35. #define GLX_RED_SIZE        8    /* number of red component bits */
  36. #define GLX_GREEN_SIZE        9    /* number of green component bits */
  37. #define GLX_BLUE_SIZE        10    /* number of blue component bits */
  38. #define GLX_ALPHA_SIZE        11    /* number of alpha component bits */
  39. #define GLX_DEPTH_SIZE        12    /* number of depth bits */
  40. #define GLX_STENCIL_SIZE    13    /* number of stencil bits */
  41. #define GLX_ACCUM_RED_SIZE    14    /* number of red accum bits */
  42. #define GLX_ACCUM_GREEN_SIZE    15    /* number of green accum bits */
  43. #define GLX_ACCUM_BLUE_SIZE    16    /* number of blue accum bits */
  44. #define GLX_ACCUM_ALPHA_SIZE    17    /* number of alpha accum bits */
  45.  
  46. #define GLX_SAMPLES_SGIS    100000    /* number of samples per pixel */
  47. #define GLX_SAMPLE_BUFFERS_SGIS     100001    /* the number of multisample buffers */
  48.  
  49. /*
  50. ** Error return values from glXGetConfig.  Success is indicated by
  51. ** a value of 0.
  52. */
  53. #define GLX_BAD_SCREEN        1    /* screen # is bad */
  54. #define GLX_BAD_ATTRIBUTE    2    /* attribute to get is bad */
  55. #define GLX_NO_EXTENSION    3    /* no glx extension on server */
  56. #define GLX_BAD_VISUAL        4    /* visual # not known by GLX */
  57. #define GLX_BAD_CONTEXT        5
  58. #define GLX_BAD_VALUE           6
  59. #define GLX_BAD_ENUM        7
  60.  
  61. /*
  62. ** Errors.
  63. */
  64. #define GLXBadContext           0
  65. #define GLXBadContextState      1
  66. #define GLXBadDrawable          2
  67. #define GLXBadPixmap            3
  68. #define GLXBadContextTag        4
  69. #define GLXBadCurrentWindow     5
  70. #define GLXBadRenderRequest     6
  71. #define GLXBadLargeRequest      7
  72. #define GLXUnsupportedPrivateRequest    8
  73.  
  74. #define __GLX_NUMBER_ERRORS 8
  75. #define __GLX_NUMBER_EVENTS 1
  76.  
  77. /*****************************************************************************/
  78.  
  79. #define GLX_WINDOW_TYPE        1
  80. #define GLX_PIXMAP_TYPE        2
  81. #define GLX_VIDEO_SOURCE_TYPE    3
  82.  
  83. /*****************************************************************************/
  84.  
  85. #define GLX_EXTENSION_NAME      "GLX"
  86. #define GLX_EXTENSION_ALIAS     "SGI-GLX"
  87.  
  88. #define GLX_VENDOR        1
  89. #define GLX_VERSION        2
  90. #define GLX_EXTENSIONS         3
  91.  
  92. /*****************************************************************************/
  93.  
  94. /*
  95. ** GLX Extension Strings
  96. */
  97. #define GLX_SGI_swap_control    1
  98. #define GLX_SGI_video_sync    1
  99. #define GLX_SGIS_multisample    1
  100. #define GLX_SGI_make_current_read 1
  101. #define GLX_SGIX_video_source    1
  102.  
  103. /* Swap modes */
  104. #define GLX_SWAP_DEFAULT_SGI    1
  105. #define GLX_SWAP_MUXPIPE_SGI    2
  106. #define GLX_SWAP_GANG_SGI    3
  107.  
  108. /* Mode specific parameters */
  109. #define GLX_MUXPIPE0_SGI    0x1
  110. #define GLX_MUXPIPE1_SGI    0x2
  111. #define GLX_MUXPIPE2_SGI    0x4
  112.  
  113. #ifdef __cplusplus
  114. }
  115. #endif
  116.  
  117. #endif /* __GLXTOKENS */
  118.